package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 权限实体类
 */
@TableName("t_grade")
public class GradeBean {
    /**权限编号*/
    @TableId(value = "pk_gradeId",type = IdType.AUTO)
    private Integer id;
    /**权限名称*/
    @TableField("g_name")
    private String name;

    public GradeBean(String name) {
        this.name = name;
    }

    public GradeBean() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "GradeBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
